Back to top

LC200_HTTP_API_v1.16 User Guide

This document describes available HTTP APIs provided by LC200.

Revision History

  • 2021.03.26:

    • Modify some HTTP API description.
  • 2021.05.10:

    • Add some HTTP API description.
  • 2021.05.25:

    • Add Camera control – Start / Stop tracking API
    • Add Backup video to USB storage API
  • 2021.05.28:

    • Add Factory reset API
  • 2021.09.17:

    • Update POST/gui/usb_backup response status
    • Update GET /system/firmware error code
    • Add Front Panel Lock API
    • Modify Macro GET/PUT API
  • 2021.11.01:

    • update API URL
  • 2021.12.01:

    • Add Recorder Pause / Resume API
    • Add Bookmark API
    • Add System front panel firmware info API
  • 2022.05.12:

    • Update Recorder Start API
    • Add Recording upload API
    • Add upload file status API
  • 2022.06.23:

    • Add channel info API
    • Add Recording list API
    • Add Snapshot list / info API
  • 2022.11.18:

    • Add Recorder Network Stream API
  • 2023.05.16:

    • Add Recorder storage API
  • 2023.11.14:

    • Add Recorder Network Stream PUT API
  • 2024.12.03:

    • Add CMS API
  • 2025.06.12:

    • Modify Schedule API some description.
  • 2025.10.23:

    • Add NAS mount API.
  • 2026.10.21:

    • Add GET/POST Upload Task by Status API.

Supported HTTP Methods

  1. GET
  • List all resource information

  • Retrieve one resource data

  1. POST
  • Create a new entry of resource

  • Perform a specific action provided by resources

  • Upload resources

  1. PUT
  • Replace entire resource and it’s elements

  • Update one resource data

  1. DELETE
  • Delete a specific resource entry

HTTP Response Code Definitions

The following HTTP status codes are used to represent results of a client’s requests.

  1. Successful
  • 200 OK

  • 201 Created

  • 202 Accepted

  1. Client Error
  • 400 Bad Request

  • 401 Unauthorized

  • 403 Forbidden

  • 404 Not Found

  • 405 Method Not Allowed

  • 409 Conflict

  • 415 Unsupported Media Type

  1. Server Error
  • 500 Internal Server Error

  • 501 Not Implemented

API Authentication

In order to access LC200 devices via HTTP with security, an Authorization mechanism is necessary. Please check Authentication for more information.

Error Handling

When error occurs, the error message of the following format will be returned.

{
    "code": 101,
    "message": "Incorrect user name or password."
}

Authentication

Token Based Authentication

Get Token
POST/api/token

Retrieve the authorization token for access APIs.

Example URI

POST /api/token
Request
HideShow
Headers
Content-Type: application/json
Body
{
  "authorization": "YWRtaW46YWRtaW4=",
  "tab_id": 12345
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "authorization": {
      "type": "string",
      "description": "The authorization string which is encoded by 'username:password' in base64."
    },
    "tab_id": {
      "type": "number",
      "description": "Tab id of browser. 0 if not given."
    }
  },
  "required": [
    "authorization"
  ]
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "token": "MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "The authorization token for accessing APIs."
    }
  }
}
Response  401
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 101,
  "message": "Incorrect user name or password."
}

Channel

Channel List

List All Channels
GET/api/channel

Retrieve all available channels.

Example URI

GET /api/channel
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "result": [
    {
      "id": 1,
      "name": "Content",
      "source": 1,
      "audio_source": 10,
      "stream": "rtsp://10.2.50.121/channel1_847e40f03496",
      "tracker": "1"
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "result": {
      "type": "array",
      "description": "Array of the channel objects"
    }
  }
}

Recorder

Recorder Status

Get Recorder Status
GET/api/recorder/status

Retrieve current status of the recorder.

The available state are:

  • Stopped

  • Recording

  • Paused

  • NotReady

Example URI

GET /api/recorder/status
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "state": "Stopped",
  "duration": 28,
  "streams": [
    {
      "name": "movie1",
      "destination": "file:///media/USB1/recording/2021_03_22_18_42_14/Movie.mp4",
      "error": 0
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "description": "The recorder's status"
    },
    "duration": {
      "type": "number",
      "description": "Current streaming duration if recorder on streaming"
    },
    "streams": {
      "type": "array",
      "description": "Current streamings"
    }
  }
}

Recorder Video Layout

Get Video Layout
GET/api/recorder/layout

Retrieve current video layout of the recorder.

Example URI

GET /api/recorder/layout
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "id": 1,
  "auto": false
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "description": "The layout ID"
    },
    "auto": {
      "type": "boolean",
      "description": "Apply auto layout or not"
    }
  }
}

Set Video Layout
PUT/api/recorder/layout

Update current video layout of the recorder.

Example URI

PUT /api/recorder/layout
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "id": 1,
  "auto": false
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "description": "The layout ID"
    },
    "auto": {
      "type": "boolean",
      "description": "Apply auto layout or not"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "id": 1,
  "auto": false
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "description": "The layout ID"
    },
    "auto": {
      "type": "boolean",
      "description": "Apply auto layout or not"
    }
  }
}
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 2,
  "message": "Invalid request parameter."
}
Response  403
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 515,
  "message": "Recorder operation is not supported."
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 513,
  "message": "Playback is streaming."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 11,
  "message": "Fail to update the resource setting."
}

Recorder Video Scene

Set Video Scene
PUT/api/recorder/theme

Update current video scene of the recorder.

Example URI

PUT /api/recorder/theme
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "id": 1
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "description": "The recorder's video theme ID"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "Success."
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 513,
  "message": "Playback is streaming."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 11,
    "message": "Fail to update the resource setting."
}

{
    "code": 501,
    "message": "An error occurred in the recorder."
}

Recording - Start

Start Recording
POST/api/recorder/start

Request the recorder to start a new recording.

Example URI

POST /api/recorder/start
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "persist": false,
  "filenames": {
    "resource1": "Test1",
    "resource2": "Test2",
    "resource3": "Test3",
    "resource4": "Test4",
    "movie1": "Test_Movie"
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "persist": {
      "type": "boolean",
      "description": "To force recorder start/stop/pause/resume recording regardless of scheduler settings."
    },
    "filenames": {
      "type": "object",
      "properties": {
        "resource1": {
          "type": "string",
          "description": "File stream resource1's filename to be replaced."
        },
        "resource2": {
          "type": "string",
          "description": "File stream resource2's filename to be replaced."
        },
        "resource3": {
          "type": "string",
          "description": "File stream resource3's filename to be replaced."
        },
        "resource4": {
          "type": "string",
          "description": "File stream resource4's filename to be replaced."
        },
        "movie1": {
          "type": "string",
          "description": "File stream movie1's filename to be replaced."
        }
      }
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "start_time": "2021-03-22T15:30:56+8:00",
  "streams": [
    {
      "name": "resource1",
      "channel": "Content",
      "destination": "file:///media/SATA/recording/2021_03_22_06_04_55/CH1_Content.mp4"
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "start_time": {
      "type": "string",
      "description": "The started date time in ISO 8691 format"
    },
    "streams": {
      "type": "array"
    }
  }
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 508,
    "message": "Ntp sync is running."
}

{
    "code": 509,
    "message": "Formatting is running."
}

{
    "code": 510,
    "message": "Firmware updating is running."
}

{
    "code": 513,
    "message": "Playback is streaming."
}

{
    "code": 517,
    "message": "Scheduler is on."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 9,
    "message": "This request is timeout."
}

{
    "code": 502
    "message": "Failed to start recording or streaming."
}

{
    "code": 507
    "message": "Storage is not enough for new recording."
}

{
    "code": 511
    "message": "Recorder is too busy to perform the operation."
}

{
    "code": 512
    "message": "No streams available to start recording."
}

{
    "code": 1302
    "message": "The storage device is not found."
}

Recording - Pause

Pause Recording
POST/api/recorder/pause

Request the recorder to pause the on-going recording.

Example URI

POST /api/recorder/pause
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "persist": false
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "persist": {
      "type": "boolean",
      "description": "To force recorder start/stop/pause/resume recording regardless of scheduler settings."
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 517,
  "message": "Scheduler is on."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 9,
    "message": "This request is timeout."
}

{
    "code": 504,
    "message": "Failed to pause recording or streaming."
}

Recording - Resume

Resume Recording
POST/api/recorder/resume

Request the recorder to resume the paused recording.

Example URI

POST /api/recorder/resume
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "persist": false
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "persist": {
      "type": "boolean",
      "description": "To force recorder start/stop/pause/resume recording regardless of scheduler settings."
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 517,
  "message": "Scheduler is on."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 9,
    "message": "This request is timeout."
}

{
    "code": 505,
    "message": "Failed to resume recording or streaming."
}

Recording - Stop

Stop Recording
POST/api/recorder/stop

Request the recorder to stop current recording.

Example URI

POST /api/recorder/stop
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "persist": false
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "persist": {
      "type": "boolean",
      "description": "To force recorder start/stop/pause/resume recording regardless of scheduler settings."
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "start_time": "2021-03-22T15:30:56+8:00",
  "stop_time": "2021-03-22T15:45:56+8:00",
  "recording": 12,
  "streams": [
    {
      "name": "resource1",
      "channel": "Content",
      "destination": "file:///media/SATA/recording/2021_03_22_06_04_55/CH1_Content.mp4"
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "start_time": {
      "type": "string",
      "description": "The started date time in ISO 8691 format"
    },
    "stop_time": {
      "type": "string",
      "description": "The stopped date time in ISO 8691 format"
    },
    "recording": {
      "type": "number",
      "description": "ID of the generated recording"
    },
    "streams": {
      "type": "array"
    }
  }
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 517,
  "message": "Scheduler is on."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 9,
    "message": "This request is timeout."
}

{
    "code": 503,
    "message": "Failed to stop recording or streaming."
}

Recorder Network Stream

Get Network Stream Configuration
GET/api/recorder/network_stream

Retrieve network stream configurations of the recorder.

Example URI

GET /api/recorder/network_stream
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "enabled": false,
  "mode": "off",
  "destination": "rtmp://demo.Lumens.com/live/stream1",
  "encode_profile": 1,
  "audio_shift": 180,
  "encryption": false,
  "key_length": 128,
  "passphrase": "JNWjfieORmnfHDEkF",
  "latency": 125,
  "source_port": 0,
  "ttl": 1,
  "secondary": {
    "enabled": false,
    "mode": "off",
    "destination": "rtmp://demo.Lumens.com/live/stream2",
    "encryption": false,
    "key_length": 128,
    "passphrase": "JNWjfieORmnfHDEkF",
    "latency": 125,
    "source_port": 0,
    "ttl": 1
  },
  "tertiary": {
    "enabled": false,
    "mode": "off",
    "destination": "rtmp://demo.Lumens.com/live/stream2",
    "encryption": false,
    "key_length": 128,
    "passphrase": "JNWjfieORmnfHDEkF",
    "latency": 125,
    "source_port": 0,
    "ttl": 1
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Network stream is enabled or not"
    },
    "mode": {
      "type": "string",
      "enum": [
        "off",
        "with_recording",
        "always",
        "user_control",
        "usb_setting"
      ],
      "description": "Streaming mode of the network stream"
    },
    "destination": {
      "type": "string",
      "description": "Destination of the network stream"
    },
    "encode_profile": {
      "type": "number",
      "description": "The encode profile ID"
    },
    "audio_shift": {
      "type": "number",
      "description": "Time of the audio shift value in milliseconds"
    },
    "encryption": {
      "type": "boolean",
      "description": "Network stream is encrypted or not (for SRT protocol only)"
    },
    "key_length": {
      "type": "number",
      "description": "Encryption key length of network stream (for SRT protocol only)"
    },
    "passphrase": {
      "type": "string",
      "description": "Encryption passphrase length of network stream (for SRT protocol only)"
    },
    "latency": {
      "type": "number",
      "description": "Network latency of network stream (for SRT protocol only)"
    },
    "source_port": {
      "type": "number",
      "description": "Source port network stream (for SRT protocol only)"
    },
    "ttl": {
      "type": "number",
      "description": "Time to live value for multicast streaming."
    },
    "secondary": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Network stream is enabled or not"
        },
        "mode": {
          "type": "string",
          "enum": [
            "off",
            "with_recording",
            "always",
            "user_control",
            "usb_setting"
          ],
          "description": "Streaming mode of the network stream"
        },
        "destination": {
          "type": "string",
          "description": "Destination of the network stream"
        },
        "encryption": {
          "type": "boolean",
          "description": "Network stream is encrypted or not (for SRT protocol only)"
        },
        "key_length": {
          "type": "number",
          "description": "Encryption key length of network stream (for SRT protocol only)"
        },
        "passphrase": {
          "type": "string",
          "description": "Encryption passphrase length of network stream (for SRT protocol only)"
        },
        "latency": {
          "type": "number",
          "description": "Network latency of network stream (for SRT protocol only)"
        },
        "source_port": {
          "type": "number",
          "description": "Source port network stream (for SRT protocol only)"
        },
        "ttl": {
          "type": "number",
          "description": "Time to live value for multicast streaming."
        }
      },
      "description": "This field will show up if 2nd live stream exists"
    },
    "tertiary": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Network stream is enabled or not"
        },
        "mode": {
          "type": "string",
          "enum": [
            "off",
            "with_recording",
            "always",
            "user_control",
            "usb_setting"
          ],
          "description": "Streaming mode of the network stream"
        },
        "destination": {
          "type": "string",
          "description": "Destination of the network stream"
        },
        "encryption": {
          "type": "boolean",
          "description": "Network stream is encrypted or not (for SRT protocol only)"
        },
        "key_length": {
          "type": "number",
          "description": "Encryption key length of network stream (for SRT protocol only)"
        },
        "passphrase": {
          "type": "string",
          "description": "Encryption passphrase length of network stream (for SRT protocol only)"
        },
        "latency": {
          "type": "number",
          "description": "Network latency of network stream (for SRT protocol only)"
        },
        "source_port": {
          "type": "number",
          "description": "Source port network stream (for SRT protocol only)"
        },
        "ttl": {
          "type": "number",
          "description": "Time to live value for multicast streaming."
        }
      },
      "description": "This field will show up if 3rd live stream exists"
    }
  }
}

Set Network Stream Configuration
PUT/api/recorder/network_stream{?apply}

Update network stream configurations of the recorder.

Example URI

PUT /api/recorder/network_stream?apply=
URI Parameters
HideShow
apply
number (optional) 

If apply is 1, this setting will be applied immediately.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "enabled": false,
  "mode": "off",
  "destination": "rtmp://demo.Lumens.com/live/stream1",
  "encode_profile": 1,
  "audio_shift": 180,
  "encryption": false,
  "key_length": 128,
  "passphrase": "JNWjfieORmnfHDEkF",
  "latency": 125,
  "source_port": 0,
  "ttl": 1,
  "secondary": {
    "enabled": false,
    "mode": "off",
    "destination": "rtmp://demo.Lumens.com/live/stream2",
    "encryption": false,
    "key_length": 128,
    "passphrase": "JNWjfieORmnfHDEkF",
    "latency": 125,
    "source_port": 0,
    "ttl": 1
  },
  "tertiary": {
    "enabled": false,
    "mode": "off",
    "destination": "rtmp://demo.Lumens.com/live/stream2",
    "encryption": false,
    "key_length": 128,
    "passphrase": "JNWjfieORmnfHDEkF",
    "latency": 125,
    "source_port": 0,
    "ttl": 1
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Network stream is enabled or not"
    },
    "mode": {
      "type": "string",
      "enum": [
        "off",
        "with_recording",
        "always",
        "user_control",
        "usb_setting"
      ],
      "description": "Streaming mode of the network stream"
    },
    "destination": {
      "type": "string",
      "description": "Destination of the network stream"
    },
    "encode_profile": {
      "type": "number",
      "description": "The encode profile ID"
    },
    "audio_shift": {
      "type": "number",
      "description": "Time of the audio shift value in milliseconds"
    },
    "encryption": {
      "type": "boolean",
      "description": "Network stream is encrypted or not (for SRT protocol only)"
    },
    "key_length": {
      "type": "number",
      "description": "Encryption key length of network stream (for SRT protocol only)"
    },
    "passphrase": {
      "type": "string",
      "description": "Encryption passphrase length of network stream (for SRT protocol only)"
    },
    "latency": {
      "type": "number",
      "description": "Network latency of network stream (for SRT protocol only)"
    },
    "source_port": {
      "type": "number",
      "description": "Source port network stream (for SRT protocol only)"
    },
    "ttl": {
      "type": "number",
      "description": "Time to live value for multicast streaming."
    },
    "secondary": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Network stream is enabled or not"
        },
        "mode": {
          "type": "string",
          "enum": [
            "off",
            "with_recording",
            "always",
            "user_control",
            "usb_setting"
          ],
          "description": "Streaming mode of the network stream"
        },
        "destination": {
          "type": "string",
          "description": "Destination of the network stream"
        },
        "encryption": {
          "type": "boolean",
          "description": "Network stream is encrypted or not (for SRT protocol only)"
        },
        "key_length": {
          "type": "number",
          "description": "Encryption key length of network stream (for SRT protocol only)"
        },
        "passphrase": {
          "type": "string",
          "description": "Encryption passphrase length of network stream (for SRT protocol only)"
        },
        "latency": {
          "type": "number",
          "description": "Network latency of network stream (for SRT protocol only)"
        },
        "source_port": {
          "type": "number",
          "description": "Source port network stream (for SRT protocol only)"
        },
        "ttl": {
          "type": "number",
          "description": "Time to live value for multicast streaming."
        }
      },
      "description": "This field will show up if 2nd live stream exists"
    },
    "tertiary": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Network stream is enabled or not"
        },
        "mode": {
          "type": "string",
          "enum": [
            "off",
            "with_recording",
            "always",
            "user_control",
            "usb_setting"
          ],
          "description": "Streaming mode of the network stream"
        },
        "destination": {
          "type": "string",
          "description": "Destination of the network stream"
        },
        "encryption": {
          "type": "boolean",
          "description": "Network stream is encrypted or not (for SRT protocol only)"
        },
        "key_length": {
          "type": "number",
          "description": "Encryption key length of network stream (for SRT protocol only)"
        },
        "passphrase": {
          "type": "string",
          "description": "Encryption passphrase length of network stream (for SRT protocol only)"
        },
        "latency": {
          "type": "number",
          "description": "Network latency of network stream (for SRT protocol only)"
        },
        "source_port": {
          "type": "number",
          "description": "Source port network stream (for SRT protocol only)"
        },
        "ttl": {
          "type": "number",
          "description": "Time to live value for multicast streaming."
        }
      },
      "description": "This field will show up if 3rd live stream exists"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "enabled": false,
  "mode": "off",
  "destination": "rtmp://demo.Lumens.com/live/stream1",
  "encode_profile": 1,
  "audio_shift": 180,
  "encryption": false,
  "key_length": 128,
  "passphrase": "JNWjfieORmnfHDEkF",
  "latency": 125,
  "source_port": 0,
  "ttl": 1,
  "secondary": {
    "enabled": false,
    "mode": "off",
    "destination": "rtmp://demo.Lumens.com/live/stream2",
    "encryption": false,
    "key_length": 128,
    "passphrase": "JNWjfieORmnfHDEkF",
    "latency": 125,
    "source_port": 0,
    "ttl": 1
  },
  "tertiary": {
    "enabled": false,
    "mode": "off",
    "destination": "rtmp://demo.Lumens.com/live/stream2",
    "encryption": false,
    "key_length": 128,
    "passphrase": "JNWjfieORmnfHDEkF",
    "latency": 125,
    "source_port": 0,
    "ttl": 1
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Network stream is enabled or not"
    },
    "mode": {
      "type": "string",
      "enum": [
        "off",
        "with_recording",
        "always",
        "user_control",
        "usb_setting"
      ],
      "description": "Streaming mode of the network stream"
    },
    "destination": {
      "type": "string",
      "description": "Destination of the network stream"
    },
    "encode_profile": {
      "type": "number",
      "description": "The encode profile ID"
    },
    "audio_shift": {
      "type": "number",
      "description": "Time of the audio shift value in milliseconds"
    },
    "encryption": {
      "type": "boolean",
      "description": "Network stream is encrypted or not (for SRT protocol only)"
    },
    "key_length": {
      "type": "number",
      "description": "Encryption key length of network stream (for SRT protocol only)"
    },
    "passphrase": {
      "type": "string",
      "description": "Encryption passphrase length of network stream (for SRT protocol only)"
    },
    "latency": {
      "type": "number",
      "description": "Network latency of network stream (for SRT protocol only)"
    },
    "source_port": {
      "type": "number",
      "description": "Source port network stream (for SRT protocol only)"
    },
    "ttl": {
      "type": "number",
      "description": "Time to live value for multicast streaming."
    },
    "secondary": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Network stream is enabled or not"
        },
        "mode": {
          "type": "string",
          "enum": [
            "off",
            "with_recording",
            "always",
            "user_control",
            "usb_setting"
          ],
          "description": "Streaming mode of the network stream"
        },
        "destination": {
          "type": "string",
          "description": "Destination of the network stream"
        },
        "encryption": {
          "type": "boolean",
          "description": "Network stream is encrypted or not (for SRT protocol only)"
        },
        "key_length": {
          "type": "number",
          "description": "Encryption key length of network stream (for SRT protocol only)"
        },
        "passphrase": {
          "type": "string",
          "description": "Encryption passphrase length of network stream (for SRT protocol only)"
        },
        "latency": {
          "type": "number",
          "description": "Network latency of network stream (for SRT protocol only)"
        },
        "source_port": {
          "type": "number",
          "description": "Source port network stream (for SRT protocol only)"
        },
        "ttl": {
          "type": "number",
          "description": "Time to live value for multicast streaming."
        }
      },
      "description": "This field will show up if 2nd live stream exists"
    },
    "tertiary": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Network stream is enabled or not"
        },
        "mode": {
          "type": "string",
          "enum": [
            "off",
            "with_recording",
            "always",
            "user_control",
            "usb_setting"
          ],
          "description": "Streaming mode of the network stream"
        },
        "destination": {
          "type": "string",
          "description": "Destination of the network stream"
        },
        "encryption": {
          "type": "boolean",
          "description": "Network stream is encrypted or not (for SRT protocol only)"
        },
        "key_length": {
          "type": "number",
          "description": "Encryption key length of network stream (for SRT protocol only)"
        },
        "passphrase": {
          "type": "string",
          "description": "Encryption passphrase length of network stream (for SRT protocol only)"
        },
        "latency": {
          "type": "number",
          "description": "Network latency of network stream (for SRT protocol only)"
        },
        "source_port": {
          "type": "number",
          "description": "Source port network stream (for SRT protocol only)"
        },
        "ttl": {
          "type": "number",
          "description": "Time to live value for multicast streaming."
        }
      },
      "description": "This field will show up if 3rd live stream exists"
    }
  }
}
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 2,
    "message": "Invalid request parameter."
}

{
    "code": 506,
    "message": "Invalid encode profile setting."
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 513,
    "message": "Playback is streaming."
}

{
    "code": 516,
    "message": "Conference is streaming."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 11,
    "message": "Fail to update the resource setting."
}

{
    "code": 14
    "message": "Fail to restart the service."
}

NetworkStream - Start

Start Streaming
POST/api/recorder/network_stream/{name}/start

Request the recorder to start network stream.

Example URI

POST /api/recorder/network_stream/name/start
URI Parameters
HideShow
name
string (required) 

The name of the desired network stream.(e.g.,live1/live2/live3)

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 514,
  "message": "No network streams available."
}

NetworkStream - Stop

Start Streaming
POST/api/recorder/network_stream/{name}/stop

Request the recorder to start network stream.

Example URI

POST /api/recorder/network_stream/name/stop
URI Parameters
HideShow
name
string (required) 

The Iname of the desired network stream.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 514,
  "message": "No network streams available."
}

Recorder Preview Stream

Get Recorder Preview Stream
GET/api/recorder/preview_stream

Retrieve preview stream information of the recorder.

Example URI

GET /api/recorder/preview_stream
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "url": "rtsp://10.2.50.121/movie_847e40f03496",
  "others": [
    {
      "enabled": true,
      "url": "srt://10.2.50.121:12345?mode=listener",
      "encryption": false,
      "key_length": 128,
      "passphrase": "JNWjfieORmnfHDEkF",
      "latency": 125,
      "protocol": "srt"
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Destination URL of the preview stream"
    },
    "others": {
      "type": "array",
      "description": "This field will show up if any other preview stream exists."
    }
  }
}

Update Recorder Preview Stream
PUT/api/recorder/preview_stream{?apply}

Updated preview stream information of the recorder.

Example URI

PUT /api/recorder/preview_stream?apply=
URI Parameters
HideShow
apply
number (optional) 

If apply is 1, this setting will be applied immediately.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "url": "rtsp://10.2.50.121/movie_<MAC_ADDR>",
  "others": [
    {
      "enabled": true,
      "url": "srt://10.2.50.121:12345?mode=listener",
      "encryption": false,
      "key_length": 128,
      "passphrase": "JNWjfieORmnfHDEkF",
      "latency": 125,
      "protocol": "srt"
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Destination URL of the preview stream (IP will be replace by box ip and <MAC_ADDR> means box's mac address)"
    },
    "others": {
      "type": "array",
      "description": "This field will show up if any other preview stream exists."
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "url": "rtsp://10.2.50.121/movie_847e40f03496",
  "others": [
    {
      "enabled": true,
      "url": "srt://10.2.50.121:12345?mode=listener",
      "encryption": false,
      "key_length": 128,
      "passphrase": "JNWjfieORmnfHDEkF",
      "latency": 125,
      "protocol": "srt"
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Destination URL of the preview stream"
    },
    "others": {
      "type": "array",
      "description": "This field will show up if any other preview stream exists."
    }
  }
}
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 2,
  "message": "Invalid request parameter."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 11,
  "message": "Fail to update the resource setting."
}

Recorder Metadata

Get Recording Metadata
GET/api/recorder/metadata

Retrieve current metadata values.

Example URI

GET /api/recorder/metadata
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "id": 1,
    "name": "Subject",
    "value": "Newbie Training"
  }
]
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "array"
}

Set Recording Metadata
PUT/api/recorder/metadata

Update metadata values.

Example URI

PUT /api/recorder/metadata
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
[
  {
    "id": 1,
    "name": "Subject",
    "value": "Newbie Training"
  }
]
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "array"
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "id": 1,
  "name": "Subject",
  "value": "Newbie Training"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "description": "The recorder's metadata ID"
    },
    "name": {
      "type": "string",
      "description": "The recorder's metadata name"
    },
    "value": {
      "type": "string",
      "description": "The recorder's metadata value"
    }
  }
}
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 2,
  "message": "Invalid request parameter."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 11,
  "message": "Fail to update the resource setting."
}

Recorder Bookmark

Add a Bookmark
POST/api/recorder/bookmark

Insert a bookmark for current recording.

Example URI

POST /api/recorder/bookmark
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "text": "My bookmark text",
  "count": false
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "The bookmark text"
    },
    "count": {
      "type": "boolean",
      "description": "Append counter info to text or not"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "Success to add a bookmark."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 501,
  "message": "An error occurred in the recorder."
}

Recorder Storage

Get Video Storage
GET/recorder/storage

Retrieve current video storage of the recorder.

Example URI

GET /recorder/storage
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "storage": "SATA",
  "total_size": 315050344448,
  "available_size": 298713026560,
  "available_recording_time": 177009,
  "cycling": true,
  "sub_storage": {
    "storage": "USB2",
    "total_size": 1031065600,
    "available_size": 969261056,
    "available_recording_time": 425
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "storage": {
      "type": "string",
      "description": "The recorder's storage"
    },
    "total_size": {
      "type": "number",
      "description": "Total size on this storage device in byte"
    },
    "available_size": {
      "type": "number",
      "description": "Available size on this storage device in byte"
    },
    "available_recording_time": {
      "type": "number",
      "description": "Available recording time on thid storage device in second"
    },
    "cycling": {
      "type": "boolean",
      "description": "Cycling recording is enabled or not."
    },
    "sub_storage": {
      "type": "object",
      "properties": {
        "storage": {
          "type": "string",
          "description": "The recorder's storage"
        },
        "total_size": {
          "type": "number",
          "description": "Total size on this storage device in byte"
        },
        "available_size": {
          "type": "number",
          "description": "Available size on this storage device in byte"
        },
        "available_recording_time": {
          "type": "number",
          "description": "Available recording time on thid storage device in second"
        }
      }
    }
  }
}

Set Video Storage
PUT/recorder/storage

Update current video storage of the recorder.

Example URI

PUT /recorder/storage
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "storage": "SATA",
  "total_size": 315050344448,
  "available_size": 298713026560,
  "available_recording_time": 177009,
  "cycling": true,
  "sub_storage": {
    "storage": "USB2",
    "total_size": 1031065600,
    "available_size": 969261056,
    "available_recording_time": 425
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "storage": {
      "type": "string",
      "description": "The recorder's storage"
    },
    "total_size": {
      "type": "number",
      "description": "Total size on this storage device in byte"
    },
    "available_size": {
      "type": "number",
      "description": "Available size on this storage device in byte"
    },
    "available_recording_time": {
      "type": "number",
      "description": "Available recording time on thid storage device in second"
    },
    "cycling": {
      "type": "boolean",
      "description": "Cycling recording is enabled or not."
    },
    "sub_storage": {
      "type": "object",
      "properties": {
        "storage": {
          "type": "string",
          "description": "The recorder's storage"
        },
        "total_size": {
          "type": "number",
          "description": "Total size on this storage device in byte"
        },
        "available_size": {
          "type": "number",
          "description": "Available size on this storage device in byte"
        },
        "available_recording_time": {
          "type": "number",
          "description": "Available recording time on thid storage device in second"
        }
      }
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "storage": "SATA",
  "total_size": 315050344448,
  "available_size": 298713026560,
  "available_recording_time": 177009,
  "cycling": true,
  "sub_storage": {
    "storage": "USB2",
    "total_size": 1031065600,
    "available_size": 969261056,
    "available_recording_time": 425
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "storage": {
      "type": "string",
      "description": "The recorder's storage"
    },
    "total_size": {
      "type": "number",
      "description": "Total size on this storage device in byte"
    },
    "available_size": {
      "type": "number",
      "description": "Available size on this storage device in byte"
    },
    "available_recording_time": {
      "type": "number",
      "description": "Available recording time on thid storage device in second"
    },
    "cycling": {
      "type": "boolean",
      "description": "Cycling recording is enabled or not."
    },
    "sub_storage": {
      "type": "object",
      "properties": {
        "storage": {
          "type": "string",
          "description": "The recorder's storage"
        },
        "total_size": {
          "type": "number",
          "description": "Total size on this storage device in byte"
        },
        "available_size": {
          "type": "number",
          "description": "Available size on this storage device in byte"
        },
        "available_recording_time": {
          "type": "number",
          "description": "Available recording time on thid storage device in second"
        }
      }
    }
  }
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1302,
  "message": "The storage device is not found."
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 513,
    "message": "Playback is streaming."
}

{
    "code": 516,
    "message": "Conference is streaming."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 8,
    "message": "Request can not be accomplished at this state."
}

{
    "code": 1305,
    "message": "Storage formatting is running."
}

{
    "code": 1309,
    "message": "Storage is not formatted."
}
Response  415
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1303,
  "message": "The storage device is not supported."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 11,
    "message": "Fail to update the resource setting."
}

{
    "code": 1304,
    "message": "Failed to format the storage."
}

Recording

Recording

Get a Recording Resource
GET/api/recording/{id}

Retrieve a specific recording.

Example URI

GET /api/recording/id
URI Parameters
HideShow
id
number (required) 

The ID of the desired recording resource.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "id": 1,
  "name": "2016-07-14-15-30-56",
  "recorded_at": "2016-07-14T15:30:56+8:00",
  "finished_at": "2016-07-14T15:45:56+8:00",
  "length": 900,
  "metadata": [
    {
      "name": "Subject",
      "value": "Newbie Training"
    }
  ],
  "bookmark": [
    {
      "bookmark": [
        {
          "text": "bookmark 1",
          "time": 10,
          "snapshot": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/bookmark_snapshots/10.jpg",
          "category": "manual",
          "description": "This is a bookmark"
        }
      ]
    }
  ],
  "bookmark_file": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/bookmark.json",
  "metadata_file": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/information.json",
  "status": "ready",
  "videos": [
    {
      "channel_id": 1,
      "channel_name": "Content",
      "playback_url": "http://10.2.50.115/playback/SATA/recording/2016-07-14-15-30-56/CH1-Content.mp4",
      "download_url": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1-Content.mp4",
      "format": "MP4",
      "width": 1920,
      "height": 1080,
      "bit_rate": 4000,
      "frame_rate": 30,
      "size": 24761449,
      "thumbnail": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1_Content.jpg"
    }
  ],
  "other_files": [
    {
      "filename": "CH1-Content.srt",
      "playback_url": "http://10.2.50.115/playback/SATA/recording/2016-07-14-15-30-56/CH1-Content.srt",
      "download_url": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1-Content.srt"
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "description": "The recording's ID"
    },
    "name": {
      "type": "string",
      "description": "The recording's name"
    },
    "recorded_at": {
      "type": "string",
      "description": "The recording's started date time in ISO 8691 format"
    },
    "finished_at": {
      "type": "string",
      "description": "The recording's finished date time in ISO 8691 format"
    },
    "length": {
      "type": "number",
      "description": "The recording's length in seconds"
    },
    "metadata": {
      "type": "array",
      "description": "Array of the video metadata objects"
    },
    "bookmark": {
      "type": "array",
      "description": "Array of the video bookmark objects"
    },
    "bookmark_file": {
      "type": "string",
      "description": "The recording's bookmark file"
    },
    "metadata_file": {
      "type": "string",
      "description": "The recording's metadata file"
    },
    "status": {
      "type": "string",
      "enum": [
        "ready",
        "waiting",
        "uploading",
        "done",
        "failed"
      ],
      "description": "The recording's status"
    },
    "videos": {
      "type": "array",
      "description": "Array of the video objects"
    },
    "other_files": {
      "type": "array",
      "description": "Array of the other file objects"
    }
  }
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 6
    "message": "The desired resource is not found."
}

Recording List

List All Recordings
GET/api/recording{?page,per_page}

Retrieve all available recordings.

Example URI

GET /api/recording?page=&per_page=
URI Parameters
HideShow
page
number (optional) Default: 1 

Page number.

per_page
number (optional) Default: 10 

Numbers of items to return per page. The maximum allowed value is 20.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "page_info": {
    "total": 25,
    "count": 10
  },
  "status_info": {
    "waiting": 25,
    "failed": 10
  },
  "result": [
    {
      "id": 1,
      "name": "2016-07-14-15-30-56",
      "recorded_at": "2016-07-14T15:30:56+8:00",
      "finished_at": "2016-07-14T15:45:56+8:00",
      "length": 900,
      "metadata": [
        {
          "name": "Subject",
          "value": "Newbie Training"
        }
      ],
      "bookmark": [
        {
          "bookmark": [
            {
              "text": "bookmark 1",
              "time": 10,
              "snapshot": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/bookmark_snapshots/10.jpg",
              "category": "manual",
              "description": "This is a bookmark"
            }
          ]
        }
      ],
      "bookmark_file": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/bookmark.json",
      "metadata_file": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/information.json",
      "status": "ready",
      "videos": [
        {
          "channel_id": 1,
          "channel_name": "Content",
          "playback_url": "http://10.2.50.115/playback/SATA/recording/2016-07-14-15-30-56/CH1-Content.mp4",
          "download_url": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1-Content.mp4",
          "format": "MP4",
          "width": 1920,
          "height": 1080,
          "bit_rate": 4000,
          "frame_rate": 30,
          "size": 24761449,
          "thumbnail": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1_Content.jpg"
        }
      ],
      "other_files": [
        {
          "filename": "CH1-Content.srt",
          "playback_url": "http://10.2.50.115/playback/SATA/recording/2016-07-14-15-30-56/CH1-Content.srt",
          "download_url": "http://10.2.50.115/download/SATA/recording/2016-07-14-15-30-56/CH1-Content.srt"
        }
      ]
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "page_info": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number",
          "description": "Total number of available recordings"
        },
        "count": {
          "type": "number",
          "description": "The number of results included in the response"
        }
      },
      "description": "Paging information of the results"
    },
    "status_info": {
      "type": "object",
      "properties": {
        "waiting": {
          "type": "number",
          "description": "The number of recordings waiting for uploading."
        },
        "failed": {
          "type": "number",
          "description": "The number of recordings failed to upload."
        }
      },
      "description": "Status information of the results"
    },
    "result": {
      "type": "array",
      "description": "Array of the recording objects"
    }
  }
}

Snapshot List

Get all Snapshots and resources
GET/api/recording/snapshot{?page,per_page,image_info}

Retrieve all cbox snapshots.

Example URI

GET /api/recording/snapshot?page=&per_page=&image_info=
URI Parameters
HideShow
page
number (optional) Default: 1 

Page number.

per_page
number (optional) Default: 10 

Numbers of items to return per page. The maximum allowed value is 20.

image_info
number (optional) Default: 1 

Whether or not response data contains snapshot image informations.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "page_info": {
    "total": 25,
    "count": 10
  },
  "status_info": {
    "waiting": 25,
    "failed": 10
  },
  "result": [
    {
      "id": 1,
      "folder": "2018-07-18",
      "size": 8505,
      "status": "ready",
      "images": [
        {
          "id": 1,
          "channel_id": 1,
          "channel_name": "Content",
          "playback_url": "http://10.2.50.115/playback/SATA/snapshot/2018-07-18/2018_07_18_16_13_08.jpg",
          "download_url": "http://10.2.50.115/download/SATA/snapshot/2018-07-18/2018_07_18_16_13_08.jpg",
          "format": "JPG",
          "width": 1920,
          "height": 1080,
          "size": 137729,
          "status": "ready"
        }
      ],
      "image_page_info": {
        "total": 25,
        "count": 10
      },
      "image_status_info": {
        "waiting": 25,
        "failed": 10
      },
      "recording_thumbnail": "Hello, world!"
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "page_info": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number",
          "description": "Total number of available snapshots"
        },
        "count": {
          "type": "number",
          "description": "The number of results included in the response"
        }
      },
      "description": "Paging information of the results"
    },
    "status_info": {
      "type": "object",
      "properties": {
        "waiting": {
          "type": "number",
          "description": "The number of snapshots waiting for uploading."
        },
        "failed": {
          "type": "number",
          "description": "The number of snapshots failed to upload."
        }
      },
      "description": "Status information of the snapshots"
    },
    "result": {
      "type": "array",
      "description": "Array of the snapshot objects"
    }
  }
}

Snapshot

Get snapshots and resource
GET/api/recording/snapshot/{id}{?page,per_page,image_info}

Retrieve a specific cbox snapshots.

Example URI

GET /api/recording/snapshot/id?page=&per_page=&image_info=
URI Parameters
HideShow
id
number (required) 

The ID of the desired snapshot resource.

page
number (optional) Default: 1 

Image page number.

per_page
number (optional) Default: 10 

Numbers of images items to return per page. The maximum allowed value is 20.

image_info
number (optional) Default: 1 

Whether or not response data contains snapshot image informations.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "id": 1,
  "folder": "2018-07-18",
  "size": 8505,
  "status": "ready",
  "images": [
    {
      "id": 1,
      "channel_id": 1,
      "channel_name": "Content",
      "playback_url": "http://10.2.50.115/playback/SATA/snapshot/2018-07-18/2018_07_18_16_13_08.jpg",
      "download_url": "http://10.2.50.115/download/SATA/snapshot/2018-07-18/2018_07_18_16_13_08.jpg",
      "format": "JPG",
      "width": 1920,
      "height": 1080,
      "size": 137729,
      "status": "ready"
    }
  ],
  "image_page_info": {
    "total": 25,
    "count": 10
  },
  "image_status_info": {
    "waiting": 25,
    "failed": 10
  },
  "recording_thumbnail": "Hello, world!"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "description": "The snapshot's ID"
    },
    "folder": {
      "type": "string",
      "description": "The snapshot's folder name"
    },
    "size": {
      "type": "number",
      "description": "Size of total size of images of this snapshot"
    },
    "status": {
      "type": "string",
      "enum": [
        "ready",
        "waiting",
        "uploading",
        "done",
        "failed"
      ],
      "description": "The snapshot's status"
    },
    "images": {
      "type": "array",
      "description": "Array of the snapshot image objects"
    },
    "image_page_info": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number",
          "description": "Total number of available images"
        },
        "count": {
          "type": "number",
          "description": "The number of results included in the response"
        }
      },
      "description": "Paging information of the images"
    },
    "image_status_info": {
      "type": "object",
      "properties": {
        "waiting": {
          "type": "number",
          "description": "The number of images waiting for uploading."
        },
        "failed": {
          "type": "number",
          "description": "The number of images failed to upload."
        }
      },
      "description": "Status information of the images"
    },
    "recording_thumbnail": {
      "type": "string",
      "description": "`http://10.2.50.115/playback/SATA/recording/2016-07-14-15-30-56/Movie.mp4` (string) - Recording thumbnail, not visible if it does not belong to any recording."
    }
  }
}

Storage

Storage Device List

List All Storage Devices
GET/api/storage

Retrieve all mounted storage devices.

Example URI

GET /api/storage
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "result": [
    {
      "name": "SATA",
      "manufacturer": "Seagate",
      "uuid": "1e886531-44a3-427e-8da6-ba3aaa88a1d7",
      "format": "ext4",
      "mounted": true,
      "capacity": {
        "total": 32907248,
        "used": 444544
      }
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "result": {
      "type": "array"
    }
  }
}

Storage Device

Get a Storage Device
GET/api/storage/{name}

Retrieve a specific storage device.

Example URI

GET /api/storage/name
URI Parameters
HideShow
name
string (required) 

Name of the storage device.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "name": "SATA",
  "manufacturer": "Seagate",
  "uuid": "1e886531-44a3-427e-8da6-ba3aaa88a1d7",
  "format": "ext4",
  "mounted": true,
  "capacity": {
    "total": 32907248,
    "used": 444544
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the storage device"
    },
    "manufacturer": {
      "type": "string",
      "description": "Manufacturer of this storage device"
    },
    "uuid": {
      "type": "string",
      "description": "UUID of this storage device"
    },
    "format": {
      "type": "string",
      "description": "Filesystem format of this storage device"
    },
    "mounted": {
      "type": "boolean",
      "description": "storage mounted or not"
    },
    "capacity": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number",
          "description": "Total space of the storage device in bytes"
        },
        "used": {
          "type": "number",
          "description": "Used space of the storage device in bytes"
        }
      }
    }
  }
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1302,
  "message": "The storage device is not found."
}
Response  415
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1303,
  "message": "The storage device is not supported."
}

Network Storage Setting

Get Network Storage Setting
GET/api/storage/network/setting

Retrieve the setting of network storage.

Example URI

GET /api/storage/network/setting
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "enable": true,
    "type": "nfs",
    "address": "0.0.0.0",
    "folder": "NFS",
    "options": "nlock,vers=1.0",
    "authorization": "YWRtaW46YWRtaW4=",
    "port": 9527,
    "domain": "TEST"
  }
]
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "array"
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "The request is not allowed."
}

Updaste Newtork Storage Setting
PUT/api/storage/network/setting

Update the setting of network storage.

Example URI

PUT /api/storage/network/setting
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "enable": true,
  "type": "nfs",
  "address": "0.0.0.0",
  "folder": "NFS",
  "options": "nlock,vers=1.0",
  "authorization": "YWRtaW46YWRtaW4=",
  "port": 9527,
  "domain": "TEST"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enable": {
      "type": "boolean",
      "description": "Network storage enabled or not."
    },
    "type": {
      "type": "string",
      "description": "Network storage type."
    },
    "address": {
      "type": "string",
      "description": "Server address."
    },
    "folder": {
      "type": "string",
      "description": "Mount folder of server."
    },
    "options": {
      "type": "string",
      "description": "Additional options for related network storage type."
    },
    "authorization": {
      "type": "string",
      "description": "The authorization string which is encoded by 'username:password' in base64."
    },
    "port": {
      "type": "number",
      "description": "Port number for network storage. (will not show up if not been set)"
    },
    "domain": {
      "type": "string",
      "description": "Domain name for network storage. (will not show up if not been set)"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "enable": true,
    "type": "nfs",
    "address": "0.0.0.0",
    "folder": "NFS",
    "options": "nlock,vers=1.0",
    "authorization": "YWRtaW46YWRtaW4=",
    "port": 9527,
    "domain": "TEST"
  }
]
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "array"
}
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 2,
  "message": "Invalid request parameter."
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "The request is not allowed."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 10,
    "message": "Fail to update the resource."
}

{
    "code": 14,
    "message": "Fail to restart the service."
}

Apply Network Storage Setting

Get Network Storage Setting Applying Status
GET/storage/network/setting/apply

Get Network Storage Setting Applying Status

Example URI

GET /storage/network/setting/apply
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    "message": "Network storage remount is done."
}

{
    "message": "Success to remount network storage."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 14,
    "message": "Fail to restart the service."
}

{
    "code": 1310,
    "message": "Network storage is busy."
}

Apply Network Storage Setting
POST/storage/network/setting/apply

Apply Current Network Storage Setting.

Example URI

POST /storage/network/setting/apply
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "Network storage remount starting."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 14,
    "message": "Fail to restart the service."
}

{
    "code": 1310,
    "message": "Network storage is busy."
}

System

System Host Name

Get System's Host Name
GET/api/system/hostname

Retrieve hostname of the device.

Example URI

GET /api/system/hostname
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "hostname": "LC200"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "hostname": {
      "type": "string",
      "description": "The device's host name"
    }
  }
}

Set System's Host Name
PUT/api/system/hostname

Update hostname of the device.

You must reboot the device for the changes to take effect.

Example URI

PUT /api/system/hostname
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "hostname": "LC200"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "hostname": {
      "type": "string",
      "description": "The device's host name"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "hostname": "LC200"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "hostname": {
      "type": "string",
      "description": "The device's host name"
    }
  }
}
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1403,
  "message": "Hostname input is null."
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 513,
    "message": "Playback is streaming."
}

{
    "code": 516,
    "message": "Conference is streaming."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}

System Device Description

Get Device Description
GET/api/system/description

Get device description

Example URI

GET /api/system/description
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "device_description": "LC200"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "device_description": {
      "type": "string",
      "description": "The device's description"
    }
  }
}

Update Device Description
PUT/api/system/description

Update device description

Example URI

PUT /api/system/description
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "device_description": "LC200"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "device_description": {
      "type": "string",
      "description": "The device's description"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "device_description": "LC200"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "device_description": {
      "type": "string",
      "description": "The device's description"
    }
  }
}
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 2,
  "message": "Invalid request parameter."
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 513,
    "message": "Playback is streaming."
}

{
    "code": 516,
    "message": "Conference is streaming."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}

Firmware

Get Firmware Information
GET/api/system/firmware

Retrieve the firmware information of the device.

Example URI

GET /api/system/firmware
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "version": "v4.8.0.14"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "version": {
      "type": "string",
      "description": "The device's firmware version"
    }
  }
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 510,
  "message": "Firmware updating is running."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 1409,
    "message": "Update firmware fail."
}

{
    "code": 1426,
    "message": "Firmware model error."
}

{
    "code": 1427,
    "message": "Firmware version is the same."
}

{
    "code": 1428,
    "message": "Firmware image is invalid."
}

{
    "code": 1429,
    "message": "Memory is not enough for firmware updating."
}

Update the Firmware
PUT/api/system/firmware

Update the firmware of the device.

Example URI

PUT /api/system/firmware
Request
HideShow
Headers
Content-Type: application/octet-stream
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
Binary Data
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "Firmware updating starts."
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 510,
  "message": "Firmware updating is running."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1409,
  "message": "Update firmware fail."
}

System Service log

Get System's Service log
GET/api/system/service_log

Retrieve system’s service log.

Example URI

GET /api/system/service_log
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "desc": "LC200"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "desc": {
      "type": "string",
      "description": "The device's description"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "download_url": "http://10.2.50.120/api/static/servicelog/Wayne5566_20180903085407.tar"
}

System Debug log

Get System's Debug log
GET/api/system/debug_log

Retrieve system’s debug log.

Example URI

GET /api/system/debug_log
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "desc": "LC200"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "desc": {
      "type": "string",
      "description": "The device's description"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "download_url": "http://10.2.50.120/api/static/debuglog/Wayne5566_20180903085407.tar.dat"
}

System Configuration

Get All System's Configuration
GET/api/system/configuration

Retrieve all system Configuration of the device.

Example URI

GET /api/system/configuration
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "download_url": "http://10.2.50.120/api/static/configuration/20180903085407.config"
}

Update the Configuration
PUT/api/system/configuration

Update the configuration of the device.

Example URI

PUT /api/system/configuration
Request
HideShow
Headers
Content-Type: application/octet-stream
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
Binary Data
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "Need reboot."
}

Reboot

Reboot System
POST/api/system/reboot

Make the device to perform the reboot process.

Example URI

POST /api/system/reboot
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  202
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "System is rebooting."
}

Wake up Schedule

Get Wake up Schedule Setting
GET/api/system/poweron/schedule

Retrieve wake up schedule setting.

Example URI

GET /api/system/poweron/schedule
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "enabled": false,
  "time": "00:00"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Enabled or not"
    },
    "time": {
      "type": "string",
      "description": "Time to run power on/power off"
    }
  }
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 7,
  "message": "Unsupported operation."
}

Update Wake up Schedule Setting
PUT/api/system/poweron/schedule

Update wake up schedule setting.

Example URI

PUT /api/system/poweron/schedule
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "enabled": false,
  "time": "00:00"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Enabled or not"
    },
    "time": {
      "type": "string",
      "description": "Time to run power on/power off"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "enabled": false,
  "time": "00:00"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Enabled or not"
    },
    "time": {
      "type": "string",
      "description": "Time to run power on/power off"
    }
  }
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 7,
  "message": "Unsupported operation."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 10,
  "message": "Fail to update the resource."
}

Standby Schedule

Get Standby Schedule Setting
GET/api/system/poweroff/schedule

Retrieve standby schedule setting.

Example URI

GET /api/system/poweroff/schedule
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "enabled": false,
  "time": "00:00"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Enabled or not"
    },
    "time": {
      "type": "string",
      "description": "Time to run power on/power off"
    }
  }
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 7,
  "message": "Unsupported operation."
}

Update Standby Schedule Setting
PUT/api/system/poweroff/schedule

Update standby schedule setting.

Example URI

PUT /api/system/poweroff/schedule
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "enabled": false,
  "time": "00:00"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Enabled or not"
    },
    "time": {
      "type": "string",
      "description": "Time to run power on/power off"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "enabled": false,
  "time": "00:00"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Enabled or not"
    },
    "time": {
      "type": "string",
      "description": "Time to run power on/power off"
    }
  }
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 7,
  "message": "Unsupported operation."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 10,
  "message": "Fail to update the resource."
}

System Local Date Time

Get System's Local Date Time
GET/api/system/datetime

Retrieve current date and time of the device.

Example URI

GET /api/system/datetime
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "timezone": "Asia/Taipei",
  "datetime": "2016-07-14T15:30:56+8:00",
  "auto_update": true,
  "ntp_server": "pool.ntp.org"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "timezone": {
      "type": "string",
      "description": "Time zone of the device"
    },
    "datetime": {
      "type": "string",
      "description": "Current date and time string of the device in ISO 8691 format"
    },
    "auto_update": {
      "type": "boolean",
      "description": "Automatically get date and time setting from the NTP server"
    },
    "ntp_server": {
      "type": "string",
      "description": "The NTP server"
    }
  }
}

Set System's Local Date Time
PUT/api/system/datetime

Update current date and time of the device.

Example URI

PUT /api/system/datetime
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "timezone": "Asia/Taipei",
  "datetime": "2016-07-14T15:30:56+8:00",
  "auto_update": true,
  "ntp_server": "pool.ntp.org"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "timezone": {
      "type": "string",
      "description": "Time zone of the device"
    },
    "datetime": {
      "type": "string",
      "description": "Current date and time string of the device in ISO 8691 format"
    },
    "auto_update": {
      "type": "boolean",
      "description": "Automatically get date and time setting from the NTP server"
    },
    "ntp_server": {
      "type": "string",
      "description": "The NTP server"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "timezone": "Asia/Taipei",
  "datetime": "2016-07-14T15:30:56+8:00",
  "auto_update": true,
  "ntp_server": "pool.ntp.org"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "timezone": {
      "type": "string",
      "description": "Time zone of the device"
    },
    "datetime": {
      "type": "string",
      "description": "Current date and time string of the device in ISO 8691 format"
    },
    "auto_update": {
      "type": "boolean",
      "description": "Automatically get date and time setting from the NTP server"
    },
    "ntp_server": {
      "type": "string",
      "description": "The NTP server"
    }
  }
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 513,
    "message": "Playback is streaming."
}

{
    "code": 516,
    "message": "Conference is streaming."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 1405,
    "message": "Set timezone fail."
}

{
    "code": 1406,
    "message": "Set auto update fail."
}

{
    "code": 1407,
    "message": "Set ntp server fail."
}

{
    "code": 1408,
    "message": "Set time fail."
}

{
    "code": 1423,
    "message": "Sync time fail."
}

Reset

Set Box to Reset
POST/api/system/reset

Make box to reset when next power on.

Example URI

POST /api/system/reset
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "Need reboot."
}

System Front Panel

Get System's Front Panel Setting
GET/api/system/front_panel

Retrieve front panel setting.

Example URI

GET /api/system/front_panel
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "lock": false
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "lock": {
      "type": "boolean",
      "description": "lock mode of front panel"
    }
  }
}

Set System's Front Panel Setting
PUT/api/system/front_panel

Update front panel setting.

Example URI

PUT /api/system/front_panel
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "lock": false
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "lock": {
      "type": "boolean",
      "description": "lock mode of front panel"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "lock": false
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "lock": {
      "type": "boolean",
      "description": "lock mode of front panel"
    }
  }
}

System Front Panel Firmware

Get System's Front Panel Firmware Information
GET/api/system/front_panel/firmware

Retrieve the front panel firmware information of the device.

Example URI

GET /api/system/front_panel/firmware
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "version": "VLW003"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "version": {
      "type": "string",
      "description": "The front panel firmware version"
    }
  }
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 510,
  "message": "Firmware updating is running."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 1409,
    "message": "Update firmware fail."
}

{
    "code": 1428,
    "message": "Firmware image is invalid."
}

Update the Sytem's Front Panel Firmware
PUT/api/system/front_panel/firmware

Update the system front panel firmware of the device.

Example URI

PUT /api/system/front_panel/firmware
Request
HideShow
Headers
Content-Type: application/octet-stream
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
Binary Data
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "Firmware updating starts."
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 510,
  "message": "Firmware updating is running."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1409,
  "message": "Update firmware fail."
}

System FPGA

Get System's FPGA version
GET/api/system/fpga

Retrieve FPGA version.

Example URI

GET /api/system/fpga
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "aduio": "v97.43.89",
  "sdi": "v33.6.4"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "aduio": {
      "type": "string",
      "description": "The FPGA's audio firmware version"
    },
    "sdi": {
      "type": "string",
      "description": "The FPGA's sdi firmware version"
    }
  }
}

Upload

Upload Configuration

Upload Mode

Mode Description Manual Upload
off Disable auto uploader Upload immediately
immediate Upload immediately after recording complete Upload immediately
scheduled Upload recording when time is in the right time Upload in the right time

Upload Extra settings properties_json Key

Key Content
kaltura_session_mode LOGIN_IDPW, ADMIN_SECRET, APP_TOKEN
kaltura_hash_method MD5, SHA1, SHA256, SHA512

Get Upload Setting
GET/api/upload

Retrieve the uploading configuration

Example URI

GET /api/upload
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "mode": "off",
  "time": "22:00-05:00",
  "destination": "protocol://domain\\user:password@192.168.100.50:21/recording",
  "auth_type": "normal",
  "user_id": "AbCdEfGh",
  "delete_file": true,
  "upload_file_type": "all",
  "folder_id": "6e2b0e73-e604-4f10-91fe-ac0200acb81c",
  "workflow_id": "fast",
  "series_id": "3ea01d19-b9cf-4fe4-b400-fbf3acdcc9f9",
  "flavor_mapping": "[{\"name\":\"Movie\",\"value\":\"mixed/source\"},{\"name\":\"CH1\",\"value\":\"presentation/source\"},{\"name\":\"CH2\",\"value\":\"presenter/source\"},{\"name\":\"CH3\",\"value\":\"audience/source\"},{\"name\":\"CH4\",\"value\":\"audience/source\"}]",
  "partner_id": "2345078",
  "properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": "\"SHA512\"}`"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "off",
        "immediate",
        "scheduled"
      ],
      "description": "Uploading mode."
    },
    "time": {
      "type": "string",
      "description": "Time interval in 24 hour clock format to upload files if mode is scheduled. If end_time is not set, default end_time 24:00 will be used."
    },
    "destination": {
      "type": "string",
      "description": "The uploading destination URL with domain, username, password, path are URL encoded."
    },
    "auth_type": {
      "type": "string",
      "enum": [
        "normal",
        "anonymous",
        "key"
      ],
      "description": "Authorization type of uploader connection."
    },
    "user_id": {
      "type": "string",
      "description": "User ID for kaltura uploading."
    },
    "delete_file": {
      "type": "boolean",
      "description": "To delete files after uploading successfully finished."
    },
    "upload_file_type": {
      "type": "string",
      "enum": [
        "all"
      ],
      "description": "File type to be uploaded."
    },
    "folder_id": {
      "type": "string",
      "description": "Folder ID for Panopto uploading."
    },
    "workflow_id": {
      "type": "string",
      "description": "Workflow ID for opencast uploading."
    },
    "series_id": {
      "type": "string",
      "description": "Series ID for opencast uploading."
    },
    "flavor_mapping": {
      "type": "string",
      "description": "Flavor mapping rule for opencast uploading."
    },
    "partner_id": {
      "type": "string",
      "description": "Partner ID for Kaltura setting."
    },
    "properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": {
      "type": "string",
      "description": "extra settings in JSON format."
    }
  }
}

Set Upload Setting
PUT/api/upload

Update the uploading configuration

Kaltura Session Mode:

ADMIN_SECRET: Partner ID set to destination user, Admin Secret set to destination password.
APP_TOKEN: id set to destination user, token set to destination password.

Example URI

PUT /api/upload
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "mode": "off",
  "time": "22:00-05:00",
  "destination": "protocol://domain\\user:password@192.168.100.50:21/recording",
  "auth_type": "normal",
  "user_id": "AbCdEfGh",
  "delete_file": true,
  "upload_file_type": "all",
  "folder_id": "6e2b0e73-e604-4f10-91fe-ac0200acb81c",
  "workflow_id": "fast",
  "series_id": "3ea01d19-b9cf-4fe4-b400-fbf3acdcc9f9",
  "flavor_mapping": "[{\"name\":\"Movie\",\"value\":\"mixed/source\"},{\"name\":\"CH1\",\"value\":\"presentation/source\"},{\"name\":\"CH2\",\"value\":\"presenter/source\"},{\"name\":\"CH3\",\"value\":\"audience/source\"},{\"name\":\"CH4\",\"value\":\"audience/source\"}]",
  "partner_id": "2345078",
  "properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": "\"SHA512\"}`"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "off",
        "immediate",
        "scheduled"
      ],
      "description": "Uploading mode."
    },
    "time": {
      "type": "string",
      "description": "Time interval in 24 hour clock format to upload files if mode is scheduled. If end_time is not set, default end_time 24:00 will be used."
    },
    "destination": {
      "type": "string",
      "description": "The uploading destination URL with domain, username, password, path are URL encoded."
    },
    "auth_type": {
      "type": "string",
      "enum": [
        "normal",
        "anonymous",
        "key"
      ],
      "description": "Authorization type of uploader connection."
    },
    "user_id": {
      "type": "string",
      "description": "User ID for kaltura uploading."
    },
    "delete_file": {
      "type": "boolean",
      "description": "To delete files after uploading successfully finished."
    },
    "upload_file_type": {
      "type": "string",
      "enum": [
        "all"
      ],
      "description": "File type to be uploaded."
    },
    "folder_id": {
      "type": "string",
      "description": "Folder ID for Panopto uploading."
    },
    "workflow_id": {
      "type": "string",
      "description": "Workflow ID for opencast uploading."
    },
    "series_id": {
      "type": "string",
      "description": "Series ID for opencast uploading."
    },
    "flavor_mapping": {
      "type": "string",
      "description": "Flavor mapping rule for opencast uploading."
    },
    "partner_id": {
      "type": "string",
      "description": "Partner ID for Kaltura setting."
    },
    "properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": {
      "type": "string",
      "description": "extra settings in JSON format."
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "mode": "off",
  "time": "22:00-05:00",
  "destination": "protocol://domain\\user:password@192.168.100.50:21/recording",
  "auth_type": "normal",
  "user_id": "AbCdEfGh",
  "delete_file": true,
  "upload_file_type": "all",
  "folder_id": "6e2b0e73-e604-4f10-91fe-ac0200acb81c",
  "workflow_id": "fast",
  "series_id": "3ea01d19-b9cf-4fe4-b400-fbf3acdcc9f9",
  "flavor_mapping": "[{\"name\":\"Movie\",\"value\":\"mixed/source\"},{\"name\":\"CH1\",\"value\":\"presentation/source\"},{\"name\":\"CH2\",\"value\":\"presenter/source\"},{\"name\":\"CH3\",\"value\":\"audience/source\"},{\"name\":\"CH4\",\"value\":\"audience/source\"}]",
  "partner_id": "2345078",
  "properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": "\"SHA512\"}`"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "off",
        "immediate",
        "scheduled"
      ],
      "description": "Uploading mode."
    },
    "time": {
      "type": "string",
      "description": "Time interval in 24 hour clock format to upload files if mode is scheduled. If end_time is not set, default end_time 24:00 will be used."
    },
    "destination": {
      "type": "string",
      "description": "The uploading destination URL with domain, username, password, path are URL encoded."
    },
    "auth_type": {
      "type": "string",
      "enum": [
        "normal",
        "anonymous",
        "key"
      ],
      "description": "Authorization type of uploader connection."
    },
    "user_id": {
      "type": "string",
      "description": "User ID for kaltura uploading."
    },
    "delete_file": {
      "type": "boolean",
      "description": "To delete files after uploading successfully finished."
    },
    "upload_file_type": {
      "type": "string",
      "enum": [
        "all"
      ],
      "description": "File type to be uploaded."
    },
    "folder_id": {
      "type": "string",
      "description": "Folder ID for Panopto uploading."
    },
    "workflow_id": {
      "type": "string",
      "description": "Workflow ID for opencast uploading."
    },
    "series_id": {
      "type": "string",
      "description": "Series ID for opencast uploading."
    },
    "flavor_mapping": {
      "type": "string",
      "description": "Flavor mapping rule for opencast uploading."
    },
    "partner_id": {
      "type": "string",
      "description": "Partner ID for Kaltura setting."
    },
    "properties_json: `{\"kaltura_session_mode\":\"LOGIN_IDPW\", \"kaltura_hash_method\"": {
      "type": "string",
      "description": "extra settings in JSON format."
    }
  }
}
Response  415
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 1116,
    "message": "Mode is not supported."
}

{
    "code": 1119,
    "message": "Protocol is not supported."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1117,
  "message": "Set upload setting fail."
}

Upload Supported Protocols

Get Upload Supported Protocols
GET/api/upload/support

Retrieve list of supported upload protocols

Example URI

GET /api/upload/support
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "protocol": [
    "ftp",
    "sftp",
    "filecruiser",
    "filecruiser-secure",
    "opencast",
    "opencast-secure",
    "panopto",
    "kaltura",
    "writefile"
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "protocol": {
      "type": "array",
      "description": "Supported protocols"
    }
  }
}

Upload Connection Test

Test Upload Destination
POST/api/upload/test

Test connection of the uploading destination

Example URI

POST /api/upload/test
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "destination": "protocol://domain\\user:password@192.168.100.50:21/recording",
  "auth_type": "normal"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "destination": {
      "type": "string",
      "description": "The uploading destination URL with domain, username, password, path are URL encoded."
    },
    "auth_type": {
      "type": "string",
      "enum": [
        "normal",
        "anonymous",
        "key"
      ],
      "description": "Authorization type of uploader connection."
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Response  415
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1119,
  "message": "Protocol is not supported."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 1100,
    "message": "Upload General Error."
}

{
    "code": 1101,
    "message": "Upload Port Error."
}

{
    "code": 1102,
    "message": "Upload Access Error."
}

{
    "code": 1103,
    "message": "Upload Connection Error."
}

{
    "code": 1104,
    "message": "Upload Send Error."
}

{
    "code": 1105,
    "message": "Upload Timeout Error."
}

{
    "code": 1106,
    "message": "Upload Disk Full."
}

{
    "code": 1107,
    "message": "Upload Format Error."
}

{
    "code": 1108,
    "message": "Upload Protocol Error."
}

{
    "code": 1109,
    "message": "Upload Bad Request."
}

{
    "code": 1110,
    "message": "Upload Unauthorized."
}

{
    "code": 1111,
    "message": "Upload Forbidden."
}

{
    "code": 1112,
    "message": "Upload Not Found."
}

{
    "code": 1113,
    "message": "Upload Length Required."
}

{
    "code": 1114,
    "message": "Upload Internal Server Error."
}

Upload Task

Get Current Upload Tasks
GET/api/upload/task

Retrieve list of existed uploading tasks

Example URI

GET /api/upload/task
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "result": [
    {
      "id": 1,
      "recording": 13,
      "snapshot": 4,
      "snapshot_image": 5
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "result": {
      "type": "array"
    }
  }
}

Add Files into the Upload Task
POST/api/upload/task

Append list of recordings into the uploading task queue

Example URI

POST /api/upload/task
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "recording": [
    13,
    14
  ],
  "snapshot": [
    4,
    5
  ],
  "snapshot_image": [
    5,
    6
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "recording": {
      "type": "array",
      "description": "List of recordings will be added into uploading"
    },
    "snapshot": {
      "type": "array",
      "description": "List of snapshots will be added into uploading (Opencast upload do not suuport snapshot upload)"
    },
    "snapshot_image": {
      "type": "array",
      "description": "List of snapshot images will be added into uploading (Opencast upload do not suuport snapshot images upload)"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "Successful to add upload task(s)"
}
Response  415
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1119,
  "message": "Protocol is not supported."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1120,
  "message": "Add upload task fail."
}

Delete Upload Task
DELETE/api/upload/task

Delete list of recordings from uploading task queue

Example URI

DELETE /api/upload/task
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "recording": [
    13,
    14
  ],
  "snapshot": [
    4,
    5
  ],
  "snapshot_image": [
    5,
    6
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "recording": {
      "type": "array",
      "description": "List of recordings will be deleted from uploading"
    },
    "snapshot": {
      "type": "array",
      "description": "List of snapshots will be deleted drom uploading"
    },
    "snapshot_image": {
      "type": "array",
      "description": "List of snapshot images will be deleted drom uploading"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "Successful to remove upload task(s)"
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1121,
  "message": "Delete upload task fail."
}

Upload Task by Status

Get Current Upload Tasks Status
GET/api/upload/task/status

Retrieve Current Upload Tasks Status

Example URI

GET /api/upload/task/status
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "upload_status": "Done"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "upload_status": {
      "type": "string",
      "enum": [
        "Done",
        "Fail",
        "Unfinished"
      ],
      "description": "Upload Task Status."
    }
  }
}

Add Files by status into the Upload Task
POST/api/upload/task/status

Append list of recordings into the uploading task queue by its status

Example URI

POST /api/upload/task/status
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "recording": "failed",
  "snapshot": "failed",
  "snapshot_image": "failed"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "recording": {
      "type": "string",
      "description": "Status of recordings will be added into uploading"
    },
    "snapshot": {
      "type": "string",
      "description": "Status of snapshots will be added into uploading (Opencast upload do not suuport snapshot upload)"
    },
    "snapshot_image": {
      "type": "string",
      "description": "Status of snapshot images will be added into uploading (Opencast upload do not suuport snapshot images upload)"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "result": [
    {
      "id": 1,
      "recording": 13,
      "snapshot": 4,
      "snapshot_image": 5
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "result": {
      "type": "array"
    }
  }
}
Response  415
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1119,
  "message": "Protocol is not supported."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1120,
  "message": "Add upload task fail."
}

Schedule

Center Information

Get Center Information
GET/api/schedule/center

Retrieve Center information.

Example URI

GET /api/schedule/center
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "url": "https://develop.opencast.org",
  "username": "opencast_system_account",
  "password": "CHANGE_ME",
  "enable": true,
  "type": "opencast",
  "authentication_token": "e0Su2xlFvY0y94fyP3u4",
  "text_overlay": true,
  "proprietary_platform_settings": "\"{authentication_type\": \"application_token\", \"hash_type\": \"md5\", \"token_id\": \"1_g9kbs9wi\", \"token_value\": \"e729b05e9c1b24433607f8c016fbfbe7\", \"partner_id\": \"2633091\", \"administrator_secret\": \"a13908145282912f3886237ad816208a\"}"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Address of the center"
    },
    "username": {
      "type": "string",
      "description": "The username"
    },
    "password": {
      "type": "string",
      "description": "The password"
    },
    "enable": {
      "type": "boolean",
      "description": "Indication the center is enabled or not"
    },
    "type": {
      "type": "string",
      "description": "Center type"
    },
    "authentication_token": {
      "type": "string",
      "description": "Token for authentication"
    },
    "text_overlay": {
      "type": "boolean",
      "description": "Enable/Disable text overlay"
    },
    "proprietary_platform_settings": {
      "type": "string",
      "description": "Proprietary platform settings. for kaltura: authentication_type: account_password, administrator_secret, application_token. hash_type: sha1, sha256, sha512, md5. token_id: application token id. token_value:  application token value. partner_id: partner id. administrator_secret: for administrator_secret authentication_type."
    }
  }
}

Update the Center setting
PUT/api/schedule/center

Update the Center setting.

Example URI

PUT /api/schedule/center
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "url": "https://develop.opencast.org",
  "username": "opencast_system_account",
  "password": "CHANGE_ME",
  "enable": true,
  "type": "opencast",
  "authentication_token": "e0Su2xlFvY0y94fyP3u4",
  "text_overlay": true,
  "proprietary_platform_settings": "\"{authentication_type\": \"application_token\", \"hash_type\": \"md5\", \"token_id\": \"1_g9kbs9wi\", \"token_value\": \"e729b05e9c1b24433607f8c016fbfbe7\", \"partner_id\": \"2633091\", \"administrator_secret\": \"a13908145282912f3886237ad816208a\"}"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Address of the center"
    },
    "username": {
      "type": "string",
      "description": "The username"
    },
    "password": {
      "type": "string",
      "description": "The password"
    },
    "enable": {
      "type": "boolean",
      "description": "Indication the center is enabled or not"
    },
    "type": {
      "type": "string",
      "description": "Center type"
    },
    "authentication_token": {
      "type": "string",
      "description": "Token for authentication"
    },
    "text_overlay": {
      "type": "boolean",
      "description": "Enable/Disable text overlay"
    },
    "proprietary_platform_settings": {
      "type": "string",
      "description": "Proprietary platform settings. for kaltura: authentication_type: account_password, administrator_secret, application_token. hash_type: sha1, sha256, sha512, md5. token_id: application token id. token_value:  application token value. partner_id: partner id. administrator_secret: for administrator_secret authentication_type."
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "Success."
}
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1702,
  "message": "Invalid scheduler setting."
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 513,
    "message": "Playback is streaming."
}

{
    "code": 516,
    "message": "Conference is streaming."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1701,
  "message": "An scheduler error occurred."
}

Agent Information

Get Agent Information
GET/api/schedule/agent

Retrieve Agent information.

Example URI

GET /api/schedule/agent
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "name": "cbox",
  "frequency": 1800
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The agent's name"
    },
    "frequency": {
      "type": "number",
      "description": "synchronization frequency"
    }
  }
}

Update the Agent setting
PUT/api/schedule/agent

Update the Agent setting.

Example URI

PUT /api/schedule/agent
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "name": "cbox",
  "frequency": 1800
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The agent's name"
    },
    "frequency": {
      "type": "number",
      "description": "synchronization frequency"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "message": "Success."
}
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1702,
  "message": "Invalid scheduler setting."
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 513,
    "message": "Playback is streaming."
}

{
    "code": 516,
    "message": "Conference is streaming."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1701,
  "message": "An scheduler error occurred."
}

Schedule Webcast Setting

Get Schedule Webcast Setting
GET/api/schedule/webcast

Retrieve schedule webcast setting.

Example URI

GET /api/schedule/webcast
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "pgm": "enabled",
  "channel1": "enabled",
  "channel2": "enabled",
  "channel3": "enabled",
  "channel4": "enabled"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "pgm": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled",
        "not_supported"
      ],
      "description": "PGM webcast stream mode"
    },
    "channel1": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled",
        "not_supported"
      ],
      "description": "Channel 1 webcast stream mode"
    },
    "channel2": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled",
        "not_supported"
      ],
      "description": "Channel 2 webcast stream mode"
    },
    "channel3": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled",
        "not_supported"
      ],
      "description": "Channel 3 webcast stream mode"
    },
    "channel4": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled",
        "not_supported"
      ],
      "description": "Channel 4 webcast stream mode"
    }
  }
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 7,
  "message": "Unsupported operation."
}

Update Schedule Webcast Setting
PUT/api/schedule/webcast

Update schedule webcast setting.

Example URI

PUT /api/schedule/webcast
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "pgm": "enabled",
  "channel1": "enabled",
  "channel2": "enabled",
  "channel3": "enabled",
  "channel4": "enabled"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "pgm": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled"
      ],
      "description": "PGM webcast stream mode"
    },
    "channel1": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled"
      ],
      "description": "Channel 1 webcast stream mode"
    },
    "channel2": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled"
      ],
      "description": "Channel 2 webcast stream mode"
    },
    "channel3": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled"
      ],
      "description": "Channel 3 webcast stream mode"
    },
    "channel4": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled"
      ],
      "description": "Channel 4 webcast stream mode"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "pgm": "enabled",
  "channel1": "enabled",
  "channel2": "enabled",
  "channel3": "enabled",
  "channel4": "enabled"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "pgm": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled",
        "not_supported"
      ],
      "description": "PGM webcast stream mode"
    },
    "channel1": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled",
        "not_supported"
      ],
      "description": "Channel 1 webcast stream mode"
    },
    "channel2": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled",
        "not_supported"
      ],
      "description": "Channel 2 webcast stream mode"
    },
    "channel3": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled",
        "not_supported"
      ],
      "description": "Channel 3 webcast stream mode"
    },
    "channel4": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled",
        "not_supported"
      ],
      "description": "Channel 4 webcast stream mode"
    }
  }
}
Response  405
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 7,
  "message": "Unsupported operation."
}
Response  409
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 8,
  "message": "Request can not be accomplished at this state."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
    "code": 10,
    "message": "Fail to update the resource."
}

{
    "code": 11,
    "message": "Fail to update the resource setting."
}

Delete Agent

Delete Agent
POST/api/schedule/delete_agent

Delete Schedule Agent

Example URI

POST /api/schedule/delete_agent
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1701,
  "message": "An scheduler error occurred."
}

Camera

Camera Move

Move a Camera Device
POST/api/camera/{id}/move

Control a specific camera device to move.

Example URI

POST /api/camera/id/move
URI Parameters
HideShow
id
number (required) 

ID of the desired camera resource.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "type": "continuous",
  "pan": 1,
  "tilt": 1,
  "zoom": 1,
  "preset": 0,
  "speed": 2,
  "focus": 1
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "continuous",
        "absolute",
        "home",
        "preset",
        "focus"
      ],
      "description": "Type of the movement."
    },
    "pan": {
      "type": "number",
      "description": "(float number) Pan speed for continuous move. In absolute move, it represents pan coordinate of the destination. No use for home, focus and preset movement."
    },
    "tilt": {
      "type": "number",
      "description": "(float number) Tilt speed for continuous move. In absolute move, it represents tilt coordinate of the destination. No use for home, focus and preset movement."
    },
    "zoom": {
      "type": "number",
      "description": "(float number) Zoom speed for continuous move. In absolute move, it represents zoom coordinate of the destination. No use for home, focus and preset movement."
    },
    "preset": {
      "type": "number",
      "description": "The preset destination ID for preset movement."
    },
    "speed": {
      "type": "number",
      "description": "(float number) Speed of the movement for absolute, home and preset movement."
    },
    "focus": {
      "type": "number",
      "description": "(integer number) For focus move only, positive value means focus far and negative means focus near."
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 3,
  "message": "Missing required parameter."
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 6,
  "message": "The desired resource is not found."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1201,
  "message": "Error occurrs on device operation."
}

Stop Camera Movement

Stop Moving of a Camera Device
POST/api/camera/{id}/stop

Control a specific camera device to stop immediately.

Example URI

POST /api/camera/id/stop
URI Parameters
HideShow
id
number (required) 

ID of the desired camera resource.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "moving": "zoom"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "moving": {
      "type": "string",
      "enum": [
        "zoom",
        "pantilt",
        "focus"
      ],
      "description": "Type of moving to be stopped. All moving will stop if moving is not specified. (pan, tilt can not be stopped separately)"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 6,
  "message": "The desired resource is not found."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1201,
  "message": "Error occurrs on device operation."
}

Camera Set Preset

Make Camera to Save Current Position as a Preset
PUT/api/camera/{id}/preset

Save current position into a specific preset.

Example URI

PUT /api/camera/id/preset
URI Parameters
HideShow
id
number (required) 

ID of the desired camera resource.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "type": "preset",
  "preset": 5
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "preset",
        "home"
      ],
      "description": "Type of the saving preset."
    },
    "preset": {
      "type": "number",
      "description": "Preset ID."
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 3,
  "message": "Missing required parameter."
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 6,
  "message": "The desired resource is not found."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1201,
  "message": "Error occurrs on device operation."
}

Camera Tracking

Enable/Disable camera tracking.
POST/api/camera/{id}/tracking

Enable/Disable specific camera’s tracking mode.

Example URI

POST /api/camera/id/tracking
URI Parameters
HideShow
id
number (required) 

ID of the desired camera resource.

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "enable": true
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enable": {
      "type": "boolean",
      "description": "Enable/Disable camera tracking."
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 3,
  "message": "Missing required parameter."
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 6,
  "message": "The desired resource is not found."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1201,
  "message": "Error occurrs on device operation."
}

External Device

LC RC01 Macro Setting List

List All LC RC01 Macro Settings
GET/api/external_device/lc_rc01/macro

Retrieve all lc rc01 macro settings.

Example URI

GET /api/external_device/lc_rc01/macro
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "index": 1,
    "theme": 1,
    "channel": [
      {
        "id": 1,
        "enable": false,
        "preset": "1"
      }
    ]
  }
]
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "array"
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 6,
  "message": "The desired resource is not found."
}

LC RC01 Macro Setting List

Get LC RC01 Macro Setting
GET/api/external_device/lc_rc01/macro/{index}

Retrieve current lc rc01 macro setting.

Example URI

GET /api/external_device/lc_rc01/macro/index
URI Parameters
HideShow
index
number (required) 

The macro’s index

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "index": 1,
  "theme": 1,
  "channel": [
    {
      "id": 1,
      "enable": false,
      "preset": "1"
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "index": {
      "type": "number",
      "description": "Index of macro"
    },
    "theme": {
      "type": "number",
      "description": "Theme id to be changed to"
    },
    "channel": {
      "type": "array"
    }
  }
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 6,
  "message": "The desired resource is not found."
}

Update LC RC01 Macro Setting
PUT/api/external_device/lc_rc01/macro/{index}

Update lc rc01 macro setting.

Example URI

PUT /api/external_device/lc_rc01/macro/index
URI Parameters
HideShow
index
number (required) 

The macro’s index

Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "preset": 1,
  "theme": 1,
  "channel": [
    {
      "id": 1,
      "enable": false,
      "preset": "1"
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "preset": {
      "type": "number",
      "description": "Preset id"
    },
    "theme": {
      "type": "number",
      "description": "Theme id to be changed to"
    },
    "channel": {
      "type": "array"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "index": 1,
  "theme": 1,
  "channel": [
    {
      "id": 1,
      "enable": false,
      "preset": "1"
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "index": {
      "type": "number",
      "description": "Index of macro"
    },
    "theme": {
      "type": "number",
      "description": "Theme id to be changed to"
    },
    "channel": {
      "type": "array"
    }
  }
}
Response  400
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 2,
  "message": "Invalid request parameter."
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 6,
  "message": "The desired resource is not found."
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 10,
  "message": "Fail to update the resource."
}

Gui

Gui Usb Backup Status

Get Usb Backup Status
GET/api/gui/usb_backup

Retrieve usb backup status.

response UsbBackup status:

  • 1 copying

  • other code is not copy.

Example URI

GET /api/gui/usb_backup
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "backup": 1
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "backup": {
      "type": "number",
      "description": "Usb Backup status"
    }
  }
}
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1803,
  "message": "Gui IPC error."
}

Make Gui Do/Cancel Usb Backup
POST/api/gui/usb_backup

Make Gui Do/Cancel Usb Backup.

response UsbBackup status:

  • 0 : no error

  • -99 : media status is not ready

  • -7 : break copying

  • -6 : FAT32 drive can’t copy over 4 GB file.

  • -5 : not enough storage

  • -4 : not find usb storage device

  • -3 : copy file size is zero

  • -1 : other error

Example URI

POST /api/gui/usb_backup
Request
HideShow
Headers
Content-Type: application/json
Authorization: MTAuMi41MC4xMTRhZG1pbi9ZV1J0YVc0PQo
Body
{
  "backup": 1
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "backup": {
      "type": "number",
      "description": "Usb Backup status"
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Response  500
HideShow
Headers
Content-Type: application/json
Body
{
  "code": 1803,
  "message": "Gui IPC error."
}

Generated by aglio on 21 Oct 2026